package xin.javashare.designPattern.creation.abstractFactory;

import xin.javashare.designPattern.creation.abstractFactory.service.Provider;
import xin.javashare.designPattern.creation.abstractFactory.service.Sender;
import xin.javashare.designPattern.creation.abstractFactory.service.serviceImp.SmsSender;

/**
 * 抽象工厂模式
 * 创建多个工厂类实现共同的接口：工厂类2
 */
public class SendSmsFactory implements Provider{
    @Override
    public Sender produce() {
        return new SmsSender();
    }
}
